package com.basics.channel.service;

import com.basics.api.enums.socket.MessageEnum;
import com.basics.api.response.channel.ChannelListData;
import com.basics.api.response.channel.TopMsgData;
import com.basics.channel.entity.CyChannel;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 频道信息 服务类
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
public interface CyChannelService extends IService<CyChannel> {

    /**
     * 获取组织下面的频道信息
     * @param id
     * @param organizationId
     * @return
     */
    CyChannel getChannelInfo(Long id,Long organizationId);

    /**
     * 获取首页频道列表
     * @param organizationId
     * @param userId
     * @return
     */
    List<ChannelListData> selectHomeChannelList(Long organizationId, Long userId);

    /**
     * 获取单个频道消息数据
     * @param organizationId
     * @param userId
     * @param channelId
     * @return
     */
    ChannelListData getChannelInfo(Long organizationId, Long userId,Long channelId);

    /**
     * 整体发消息
     * @param organizationId
     * @param channelId
     * @return
     */
    List<ChannelListData> selectChannelInfoForMsg(Long organizationId, Long channelId, MessageEnum messageEnum);
}
